
local Character = require "Entity.Character"

local EntityManager = BaseClass(Singleton)

function  EntityManager:__init()
    self.characterList={}
end

function  EntityManager:AddCharater(vo)
    if self.characterList[vo.objId] ~= nil then
        return
    end
    local character= Character.New()
    character:Init()
    self.characterList[vo.objId] = character
end


function  EntityManager:Update(detaTime)
    
        for k,v in pairs(self.characterList) do
            
            v:Update()

        end
end

return EntityManager